<?php 
if(!isset($_SESSION)) 
{ 
	session_start(); 
}
ob_start();
include '../dao/connection.php';
include '../lang.php';
$loi='';
$view='';
if(isset($_REQUEST['us']) && isset($_REQUEST['ps'])){
	$sql="select ssh_admin_account.id from ssh_admin_account where ssh_admin_account.username='".trim($_REQUEST['us'])."' and ssh_admin_account.`password`=md5('".trim($_REQUEST['ps'])."')";
	$rs=mysql_query($sql);
	if(mysql_num_rows($rs)>0){
		//header('Location: ../index.php?vcontent=admin_searchlog_content');
		$_SESSION['useradmin']=trim($_REQUEST['us']);
		$loi="l_loginok";
		//$view=$l_loginok;
	}else{
		$loi="l_notlogin";
		$view=$l_notlogin;
	}
}
?>
<input type="hidden" value="<?=$loi?>"  id="idloi"/><font color="red"><?php echo $view;?></font>
<?php mysql_close($connection);?>